//
//  LoginParser.h
//  Politics
//
//  Created by Hai Nguyen on 7/9/11.
//  Copyright 2011 VinaSource. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol LoginParserDelegate <NSObject>
- (void)didLogin:(int)result;
@end

@interface LoginParser : NSObject <NSXMLParserDelegate>
{
	NSObject <LoginParserDelegate>* delegate;
	NSMutableData *responseData;
}
@property (retain, nonatomic) NSMutableData *responseData;
@property (nonatomic, retain) NSObject <LoginParserDelegate>* delegate;

- (void)loginWithUserId:(NSString *)userid password:(NSString*) password withDelegate:(id)aDelegate;

@end
